home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 25 / AMIGAplus Sonderheft 25 (2000)(Falke)(DE)(Track 1 of 4)[!].iso / Updates / PowerPC / pdflib / test / smakefilePPC < prev    next >
Text File  |  2000-05-16  |  1KB  |  66 lines

  1. # Makefile for PDFlib tests
  2. #
  3. # modified for Amiga SAS/C PPC by ARK (28/Nov/99)
  4. #
  5.  
  6. VERSION = @VERSION@
  7.  
  8. SHELL = @SHELL@
  9. INSTALL = @INSTALL@
  10.  
  11. srcdir = /clients
  12.  
  13. INCDIR  =
  14. CC      = SCPPC
  15. CCOPT   =
  16. LD      =
  17. LDOPT   =
  18. OBJ     = o
  19. EXE     = .elf
  20. RM      = #delete
  21. AR      = ppc-amigaos-ar
  22. RANLIB  = ppc-amigaos-ranlib
  23. AROPTS  =
  24. PDFLIBM = /lib/libpdf.a
  25. PDFLIB  = ../lib/libpdf.a
  26. LIBS    = $(PDFLIB)
  27.  
  28. LDFLAGS =
  29.  
  30. .SUFFIXES: .c
  31.  
  32. .c.o:
  33.         $(CC) $(CFLAGS) $(DEFINES) $<
  34.  
  35. # ------------------------------
  36.  
  37. SRC     = \
  38.         $(srcdir)/pdftest.c
  39.  
  40. OBJS    = \
  41.         $(srcdir)/pdftest.$(OBJ)
  42.  
  43. all:    pdftest$(EXE)
  44.  
  45. test: pdftest$(EXE)
  46.         LD_LIBRARY_PATH=../pdflib ./pdftest
  47.  
  48. pdftest$(EXE): pdftest.$(OBJ) $(PDFLIBM)
  49.  
  50.                 ppc-amigaos-ld -r LIB:c_ppc.o pdftest.o ../util/getopt.o $(PDFLIB) LIB:scppc.a lib:end.o -o $@
  51.                 Protect $@ +e
  52.  
  53. clean:
  54.         -$(RM) pdftest$(EXE) pdftest*.pdf $(OBJS)
  55.  
  56. maintainer-clean: clean
  57.         -$(RM) Makefile.in.bak
  58.  
  59. depend:
  60.         cp Makefile.in Makefile.in.bak
  61.         sed '/^# Automatically generated dependencies/q' Makefile.in.bak >Makefile.in
  62.         $(CC) $(CFLAGS) -MM $(SRC)>>Makefile.in
  63.  
  64. # Automatically generated dependencies
  65. pdftest.o: pdftest.c /pdflib/pdflib.h
  66.